package com.dlc.shop.bean.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 出入库商品项DTO
 *
 * @author lhd
 * @date 2022-06-22 16:57:27
 */
@Data
public class StockBillLogItemDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    public StockBillLogItemDTO(Long prodId, Long skuId, Long shopId, Long orderId, String spuName, String skuName, Integer stockCount, Double unitPrice, String partyCode, String mainImgUrl) {
        this.prodId = prodId;
        this.skuId = skuId;
        this.shopId = shopId;
        this.orderId = orderId;
        this.spuName = spuName;
        this.skuName = skuName;
        this.stockCount = stockCount;
        this.unitPrice = unitPrice;
        this.partyCode = partyCode;
        this.mainImgUrl = mainImgUrl;
    }

    @Schema(description = "出入库明细id")
    private Long stockBillLogId;

    @Schema(description = "skuId")
    private Long skuId;

    @Schema(description = "店铺Id")
    private Long shopId;

    @Schema(description = "订单id")
    private Long orderId;

    @Schema(description = "库存仓库id")
    private Long stockPointId;

    @Schema(description = "商品名称")
    private String spuName;

    @Schema(description = "商品sku名称")
    private String skuName;

    @Schema(description = "实际出入库数量")
    private Integer stockCount;

    @Schema(description = "商品库存剩余量")
    private Integer afterStock;

    @Schema(description = "成本单价")
    private Double unitPrice;

    @Schema(description = "商品编码")
    private String partyCode;
    @Schema(description = "商品图片")
    private String mainImgUrl;

    @Schema(description = "类型，1：出库 2：入库")
    private Integer stocktype;

    @Schema(description = "单据类型")
    private Integer stockBillType;

    @Schema(description = "库存点类型")
    private Integer stockPointType;

    @Schema(description = "制单人手机号")
    private String makerMobile;

    @Schema(description = "商品id")
    private Long prodId;

    @Schema(description = "制单人id")
    private Long employeeId;
}
